<?php
    require_once "../autoload.php";
    $id = (int) $_REQUEST['id'];
    $objPromocoes = new Promocoes();
    $objPromocoes->setId($id);
    $objPromocoes->delete();
    echo "ok";
